package com.stoken.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stoken.dao.MemberActiveListDao;
import com.stoken.dao.UserDao;
import com.stoken.domain.MemberActiveList;
import com.stoken.domain.User;
import com.stoken.service.MemberActiveListService;
import com.stoken.service.UserService;
import com.symbio.commons.Page;
import com.symbio.dao.hibernate.GenericDaoImpl;
import com.symbio.service.impl.AbstractServiceImpl;

@Service
public class MemberActiveListServiceImpl extends AbstractServiceImpl<MemberActiveList, Long> implements MemberActiveListService{
	
    @Autowired
	private MemberActiveListDao memberActiveListDao;
    
	@Override
	public GenericDaoImpl<MemberActiveList, Long> getDao() {		
		return memberActiveListDao;
	}

	@Override
	public List<MemberActiveList> findActiveListByUsername(String username) {
		return memberActiveListDao.findList("from MemberActiveList where baseUsername.baseUsername = ?", new Object[]{username});
		
	}
}
